{#include file="aj/pageheader.html"#}

<h1>
<span class="action-span1"><a href="#">修改调查项</a> </span>
<span class="action-span"><a href="{#spUrl c=ask a=index pid=$smarty.get.pid#}">调查项列表</a></span>
</h1>
<div class="main-div">
<form method="post" action="{#spUrl c=ask a=update#}" name="theForm"  onsubmit="return validate()" enctype="multipart/form-data">
<table cellspacing="1" cellpadding="3" width="100%">
  <tr>
    <td class="label">调查项名称:</td>
    <td><input type="text" name="title" size = "60" value="{#$cat.title#}"/>&nbsp;</td>
  </tr>
  <tr>
    <td class="label">所属分类</td>
    <td>
      <select name="sid" >
		
        <option value="0">顶级分类</option>
        {#foreach item=cat_sel from=$cat_select#}
        	<option value="{#$cat_sel.id#}" {#if $cat_sel.id==$cat.sid#} selected="selected" {#/if#} style="padding-left:{#$cat_sel.level*20#}px">{#$cat_sel.catename#}</option>
        {#/foreach#}
      </select>
    </td>
  </tr>
  <tr>
    <td class="label">调查项类型:</td>
    <td>
		<select name="asktype">
			<option value="text" {#if $cat.asktype=="text"#}selected="selected"{#/if#}>文本框</option>
			<option value="radio" {#if $cat.asktype=="radio"#}selected="selected"{#/if#}>单选</option>
		</select>
	</td>
  </tr>
  <tr>
    <td class="label">调查项值:</td>
    <td><input type="text" name="content" size = "60" value="{#$cat.content#}"/>&nbsp;</td>
  </tr>
  <tr>
    <td class="label">排序:</td>
    <td>
      <input type="text" name='sort_id' size="15"  value="{#$cat.sort_id#}"/>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center"><br />
      <input type="hidden" value="{#$smarty.get.pid#}" name="pid"/>
      <input type="hidden" name="id" value="{#$smarty.get.id#}" />
      <input type="submit" class="button" value="提交" />
      <input type="reset" class="button" value="重置" />
      
    </td>
  </tr>
</table>
</form>
</div>
{#include file="aj/pagefooter.html"#}